<!DOCTYPE html>
<%@page pageEncoding="UTF-8" contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="EF" uri="/WEB-INF/framework/tlds/EF-2.0.tld" %>
<%String actionUrl = request.getContextPath() + "/DispatchAction.do";%>
<html>
<EF:EFHead includeDefault="true">
<script type="text/javascript" src="./ZM/zm.js"></script>
</EF:EFHead>
<EF:EFBody>
	<EF:EFForm id="ZMCC10"  method="POST" action="<%=actionUrl%>"> 
		<EF:EFInput type="hidden" ename="fdCreator" cname="登录人"/>
		<EF:EFInput type="hidden" ename="fdCreateDepartmentId" cname="单位ID"/>
		<EF:EFInput type="hidden" ename="fdMiningId" cname="矿ID"/>
		<!-- 记录主表的选中信息 -->
		<EF:EFInput type="hidden" ename="fdDepartmentId" cname="责任部门"/>  
		<div id="ef_region_inqu" title="查询条件" efRegionShowClear="true">
			<div class="row-fluid"> 
				<div class="span4">
					<EF:EFSelect blockId="inqu_status" row="0" ename="fdBusinessDepartmentId" cname="责任部门：" etc="style='width:133px';">
						<EF:EFOptions blockId="cmes.cp.department" labelColumn="orgName" valueColumn="orgCode"></EF:EFOptions>
					</EF:EFSelect>
				</div>
				<div class="span4">
					<EF:EFSelect blockId="inqu_status" row="0" ename="fdProblemTypeId" cname="问题类型：" etc="style='width:133px';">						<EF:EFOption label="" value=""></EF:EFOption>
						<EF:EFOptions blockId="cmes.cp.problemType" labelColumn="display" valueColumn="value"></EF:EFOptions>
					</EF:EFSelect>
				</div>
				<div class="span4">
					<EF:EFSelect blockId="inqu_status" row="0" ename="fdProblemLevelId" cname="问题级别：" etc="style='width:133px'">
						<EF:EFOptions blockId="cmes.cp.problemLevel" labelColumn="display" valueColumn="value"></EF:EFOptions>
					</EF:EFSelect>
				</div>
			</div>
			<div class="row-fluid"> 		
				<div class="span4">
					<EF:EFInput blockId="inqu_status" row="0" type="text" ename="fdBeginDate" cname="起始日期：" popup="date" etc="style='width:133px'"/>
				</div>
				<div class="span4">
					<EF:EFInput blockId="inqu_status" row="0" type="text" ename="fdEndDate" cname="截止日期：" popup="date" etc="style='width:133px'"/>
				</div>
			</div>
		</div>
		<div id="ef_region_result" title="记录集" style="overflow: hidden">
			<div id="ef_grid_r" title="页面信息" style="overflow: hidden; height: 320px;"></div>
		</div> 
		<!-- 生产问题--延期 -->
		<div id="ef_region_mainadd" title="延期" style="overflow: scroll"> 
			<EF:EFInput blockId="result_add" row="0" type="hidden" ename="fdKeyId" cname="主键"/>	
			<div class="row-fluid"> 		
				<div class="span4">
					<EF:EFInput blockId="result_add" row="0" type="text" ename="fdProblemTimeF" cname="发生时间：" etc="style='width:133px'"/>
				</div>
				<div class="span4">
					<EF:EFInput blockId="result_add" row="0" type="text" ename="fdDeadlineTimeF" cname="*解决时间：" popup="datetime" etc="style='width:133px'"/>
				</div>
			</div>
		</div> 
		<!-- 新增处理 -->
		<div id="ef_region_solveadd" title="整改通知" style="overflow: scroll"> 
			<EF:EFInput blockId="solve_add" row="0" type="hidden" ename="fdKeyId" cname="主键"/>
			<EF:EFInput blockId="solve_add" row="0" type="hidden" ename="fdRecordId" cname="生产问题记录ID"/>
			<EF:EFInput blockId="solve_add" row="0" type="hidden" ename="fdCreateTime"  cname="创建时间"/>
			<EF:EFInput blockId="solve_add" row="0" type="hidden" ename="fdStatus" cname="处理状态"/>
			<EF:EFInput blockId="solve_add" row="0" type="hidden" ename="fdPenaltyId" cname="罚款单ID" />
			<EF:EFInput blockId="solve_add" row="0" type="hidden" ename="fdPenalty" cname="罚款金额" />
			<EF:EFInput blockId="solve_add" row="0" type="hidden" ename="fdHandlePeopleId" cname="处理人ID"/>
			<EF:EFInput blockId="solve_add" row="0" type="hidden" ename="fdBusinessDepartmentId" cname="责任部门"/>
			<table width="100%">  
				<tr>
					<td nowrap width="10%" align="right">处理日期</td><td nowrap width="23%">
					<EF:EFInput blockId="solve_add" row="0" type="text" ename="fdHandleDate" popup="date"/></td>
					<td nowrap width="10%" align="right">处理人</td><td nowrap width="24%">
					<EF:EFInput blockId="solve_add" row="0" type="text" ename="fdHandlePeople" /></td> 
					<td nowrap width="10%" align="right">是否罚款</td><td nowrap width="23%">
						<EF:EFSelect blockId="solve_add" row="0" ename="fdIsPenalty">
							<EF:EFOption label="否" value="否"></EF:EFOption> 
							<EF:EFOption label="是" value="是"></EF:EFOption> 
						</EF:EFSelect>
					</td> 
				</tr> 
				<tr>
					<td nowrap width="10%" align="right">*处理意见</td>
					<td nowrap width="80%" colspan="5">
					<EF:EFInput blockId="solve_add" row="0" type="textarea" ename="fdSuggestion" etc=" rows='6' cols='180'"/>
					</td>     
				</tr>  
			</table> 
		</div> 
		<!-- 新增罚款 -->
		<div id="ef_region_penaltyadd" title="罚款通知" style="overflow: scroll"> 
			<EF:EFInput blockId="penalty_add" row="0" type="hidden" ename="fdKeyId" cname="主键"/>
			<EF:EFInput blockId="penalty_add" row="0" type="hidden" cname="开单部门" ename="fdSendnoteDepartment"/>
			<EF:EFInput blockId="penalty_add" row="0" type="hidden" cname="状态" ename="fdStatus"/>
			<EF:EFInput blockId="penalty_add" row="0" type="hidden" cname="责任人ID" ename="fdPeopleId"/>
			<EF:EFInput blockId="penalty_add" row="0" type="hidden" cname="开单人ID" ename="fdSendnotePersonId"/>
			<EF:EFInput blockId="penalty_add" row="0" type="hidden" cname="开单人" ename="fdSendnotePerson"/>
			<EF:EFInput blockId="penalty_add" row="0" type="hidden" cname="已交罚款" ename="fdIsSubmit"/> 
			<!-- 辅助判断 -->
			<EF:EFInput blockId="penalty_add" row="0" type="hidden" ename="fdRecordId" cname="主表主键"/>
			<EF:EFInput blockId="penalty_add" row="0" type="hidden" ename="fdHandleId" cname="处理主键"/>
			<table width="100%">  
				<tr> 
					<td nowrap width="10%" align="right">开单日期</td><td nowrap width="23%">
					<EF:EFInput blockId="penalty_add" row="0" type="text" ename="fdSendnoteDate"/></td>  
					<td nowrap width="10%" align="right">开单部门</td><td nowrap width="23%"> 
						<EF:EFSelect blockId="penalty_add" row="0" ename="fdSendnoteDepartmentId">
							<EF:EFOptions blockId="cmes.cp.department" labelColumn="orgName" valueColumn="orgCode"></EF:EFOptions>
						</EF:EFSelect>
					</td>  
					<td nowrap width="10%" align="right">*罚款金额</td><td nowrap width="23%">
					<EF:EFInput blockId="penalty_add" row="0" type="text" ename="fdPenalty"/></td>
				</tr>      
				<tr>   
					<td nowrap width="10%" align="right">罚款分类</td><td nowrap width="23%">
						<EF:EFSelect blockId="penalty_add" row="0" ename="fdClassify" etc=" regex='/^.+$/' errorPrompt='不能为空' ">
							<EF:EFOptions blockId="cmes.cl.penaltyType" labelColumn="display" valueColumn="value"></EF:EFOptions>
						</EF:EFSelect>
					</td> 
					<td nowrap width="10%" align="right">责任单位</td><td nowrap width="23%">
						<EF:EFSelect blockId="penalty_add" row="0" ename="fdDepartmentId">
							<EF:EFOptions blockId="cmes.cp.department" labelColumn="orgName" valueColumn="orgCode"></EF:EFOptions>
						</EF:EFSelect>
					</td> 
					<td nowrap width="10%" align="right">*责任人</td><td nowrap width="23%">
					<EF:EFInput blockId="penalty_add" row="0" type="text" ename="fdPeopleName"/></td> 
					
				</tr>
				<tr>   
					<td nowrap width="10%" align="right">*罚款原因</td><td nowrap width="80%" colspan="5">
					<EF:EFInput blockId="penalty_add" row="0" type="textarea" ename="fdReason" etc="rows='6' cols='180'"/></td> 
					
				</tr>
				<tr>   
					<td nowrap width="10%" align="right">备注</td><td nowrap  width="80%" colspan="5">
					<EF:EFInput blockId="penalty_add" row="0" type="textarea" ename="fdRemarks"  etc="rows='6' cols='180'"/></td>  
				</tr> 
			</table>
		</div>   
		<EF:EFRegion/>
		
		<EF:EFGrid blockId="result" paintId="ef_grid_r" serviceName="ZMCC11" queryMethod="query" autoDraw="no" readonly="false" style="navigationBar:true;operationBar:true" ajax="true">
			<EF:EFColumn ename="fdKeyId" cname="主键" visible="false"></EF:EFColumn>
			<EF:EFComboColumn ename="fdProblemStatus" cname="*问题状态" nullable="false" enable="false" blockName="cmes.cp.problemStatus" labelProperty="display" valueProperty="value" align="center" width="60"/>
			<EF:EFComboColumn ename="fdProblemTypeId" cname="*问题类型" nullable="false" enable="true" blockName="cmes.cp.problemType" labelProperty="display" valueProperty="value" align="center" width="100"/>
			<EF:EFComboColumn ename="fdProblemLevelId" cname="*问题级别" nullable="false" enable="true" blockName="cmes.cp.problemLevel" labelProperty="display" valueProperty="value" align="center" width="60" />
			<EF:EFComboColumn ename="fdProblemOrigin" cname="*问题来源" nullable="false" enable="true" blockName="cmes.cp.problemOrigin" labelProperty="display" valueProperty="value" align="center" width="80" />
			<EF:EFColumn ename="fdProblemPlace" cname="*发生地点" nullable="false" enable="true" validateRegex="/^.{0,250}$/" validateErrorPrompt="输入1~250个字符" width="100" editType="textarea"/>
			<EF:EFColumn ename="fdProblemDescription" cname="*问题描述" nullable="false" enable="true" validateRegex="/^.{0,400}$/" validateErrorPrompt="输入1~400个字符" align="left" width="100" editType="textarea" />
			<EF:EFComboColumn ename="fdBusinessDepartmentId" cname="*责任部门" nullable="false" enable="true" blockName="cmes.cp.department" labelProperty="orgName" valueProperty="orgCode" align="center" width="80" />
			<EF:EFColumn ename="fdBusinessMan" cname="*责任人" nullable="false" enable="true" validateRegex="/^.{1,10}$/" validateErrorPrompt="输入1~10个字符" align="center" width="80" />
			<EF:EFComboColumn ename="fdSubmitorDepartmentId" cname="*提出部门" nullable="false" enable="true" blockName="cmes.cp.department" labelProperty="orgName" valueProperty="orgCode" align="center" width="80" />
			<EF:EFColumn ename="fdSubmitor" cname="*提出人" nullable="false" enable="true" validateRegex="/^\S{1,25}$/" validateErrorPrompt="输入1~25个字符，不能输入空格" align="center" width="80" />
			<EF:EFColumn ename="fdCreateUserId" cname="录入人" enable="true" align="center" width="80" visible="false" />
			<EF:EFColumn ename="fdCreateTime" cname="创建时间" enable="false" dateFormatString="yyyy-MM-dd hh:mm:ss" editType="datetime" visible="false" align="center" width="130"/>
			<EF:EFColumn ename="fdProblemTimeF" cname="*发生时间" nullable="false" enable="true" dateFormat="yyyy-MM-dd hh:mm:ss" editType="datetime" align="center" width="130"></EF:EFColumn>
			<EF:EFColumn ename="fdDeadlineTimeF" cname="*解决时间" nullable="false" enable="true" dateFormat="yyyy-MM-dd hh:mm:ss" editType="datetime" align="center" width="130"></EF:EFColumn>
			<EF:EFComboColumn ename="fdIsRepeat" cname="*是否重复问题" nullable="false" enable="true" blockName="cmes.cp.isCheck" labelProperty="display" valueProperty="value" align="center" width="80" />
			<EF:EFColumn ename="fdIsPenalty" cname="是否罚款" visible="false" enable="false" align="center" width="80" />
			<EF:EFColumn ename="fdPenaltyIds" cname="罚款记录" visible="false" enable="false" align="center" width="80" />
			<EF:EFColumn ename="fdRemarks" cname="备注" enable="true" validateRegex="/^.{0,250}$/" validateErrorPrompt="输入1~250个字符" align="center" width="100" editType="textarea" />
		</EF:EFGrid>		 
	</EF:EFForm>
</EF:EFBody>
</html>
